package cn.tedu.baidashi.service.Impl;

import cn.tedu.baidashi.mapper.CityMapper;
import cn.tedu.baidashi.model.City;
import cn.tedu.baidashi.service.ICityService;
import cn.tedu.baidashi.vo.CityVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tedu.cn
 * @since 2022-02-16
 */
@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, City> implements ICityService {
    @Autowired
    CityMapper cityMapper;


    @Override
    public List<CityVo> getCityNames(String province_name) {
        List<CityVo> cityVos=cityMapper.selectCityNamesByProvinceName(province_name);
        return cityVos;
    }
}
